package entity;

import java.io.Serializable;

public class Operator  implements Serializable {
    private static final long serialVersionUID = 1389357906724L;

    private Integer operatorID;//管理者ID,唯一做主键
    private String name;//管理者姓名
    private String account;//管理者账户，登录用
    private String password;//管理者密码，登录用
    private Integer character;//管理者角色，角色拥有权限
    private String email;//管理者邮箱
    private String sex;//管理者性别
    private String photo;//管理者照片地址

    public Operator(){}

    public Operator(Integer operatorID, String name, String account, String password, Integer character, String email, String sex, String photo){
        this.operatorID = operatorID;
        this.name = name;
        this.account = account;
        this.password = password;
        this.character = character;
        this.email = email;
        this.sex = sex;
        this.photo = photo;
    }

    public Integer getOperatorID() {
        return operatorID;
    }

    public void setOperatorID(Integer operatorID) {
        this.operatorID = operatorID;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getCharacter() {
        return character;
    }

    public void setCharacter(int character) {
        this.character = character;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }
}
